HTMLify
style.css
Views: 12 | Author: cody
@import "https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap";
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #191919;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.modal {
width: fit-content;
height: fit-content;
background: #fff;
box-shadow: 0 187px 75px rgba(0, 0, 0, 0.01), 0 105px 63px rgba(0, 0, 0, 0.05),
0 47px 47px rgba(0, 0, 0, 0.09), 0 12px 26px rgba(0, 0, 0, 0.1),
0 0 0 rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 187px 75px rgba(0, 0, 0, 0.01),
0 105px 63px rgba(0, 0, 0, 0.05), 0 47px 47px rgba(0, 0, 0, 0.09),
0 12px 26px rgba(0, 0, 0, 0.1), 0 0 0 rgba(0, 0, 0, 0.1);
border-radius: 26px;
max-width: 450px;
}
.form {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
}
.payment--options {
width: calc(100% - 40px);
display: grid;
grid-template-columns: 33% 34% 33%;
gap: 20px;
padding: 10px;
}
.payment--options button {
height: 55px;
background: #f2f2f2;
border-radius: 11px;
padding: 0;
border: 0;
outline: none;
}
.payment--options button svg {
height: 18px;
}
.payment--options button:last-child svg {
height: 22px;
}
.separator {
width: calc(100% - 20px);
display: grid;
grid-template-columns: 1fr 2fr 1fr;
gap: 10px;
color: #8b8e98;
margin: 0 10px;
}
.separator > p {
word-break: keep-all;
display: block;
text-align: center;
font-weight: 600;
font-size: 11px;
margin: auto;
}
.separator .line {
display: inline-block;
width: 100%;
height: 1px;
border: 0;
background-color: #e8e8e8;
margin: auto;
}
.credit-card-info--form {
display: flex;
flex-direction: column;
gap: 15px;
}
.input_container {
width: 100%;
height: fit-content;
display: flex;
flex-direction: column;
gap: 5px;
}
.split {
display: grid;
grid-template-columns: 4fr 2fr;
gap: 15px;
}
.split input {
width: 100%;
}
.input_label {
font-size: 10px;
color: #8b8e98;
font-weight: 600;
}
.input_field {
width: auto;
height: 40px;
padding: 0 0 0 16px;
border-radius: 9px;
outline: none;
background-color: #f2f2f2;
border: 1px solid #e5e5e500;
transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}
.input_field:focus {
border: 1px solid transparent;
box-shadow: 0 0 0 2px #242424;
background-color: transparent;
}
.purchase--btn {
height: 55px;
text-transform: uppercase;
letter-spacing: 1px;
background: #f2f2f2;
border-radius: 11px;
border: 0;
outline: none;
color: #fff;
font-size: 13px;
font-weight: 700;
background: #537fe7;
transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}
.purchase--btn:hover {
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0000003a;
}
.input_field::-webkit-outer-spin-button,
.input_field::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.input_field[type="number"] {
-moz-appearance: textfield;
}